package com.lcj.dr.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class WalletPageForm {
    @NotNull(message = "page不能为空")
    @Min(value = 1, message = "page不能小于1")
    @Schema(description = "页数")
    private Integer page;

    @NotNull(message = "length不能为空")
    @Range(min = 1, max = 300, message = "length必须在1~300之间")
    @Schema(description = "每页记录数")
    private Integer length;

    @Range(min = 1, max = 3, message = "status范围1~3")
    @Schema(description = "状态")
    private Byte status;

    @Schema(description = "电话号码")
    private String tel;

    @Schema(description = "类型")
    private String type;

    @Schema(description = "开始时间")
    private Date startTime;

    @Schema(description = "结束时间")
    private Date endTime;
}
